package cn.melonlib.cores.security.auth2.comp.config;

import cn.melonlib.cores.aop.anno.AppendAccessToken;
import cn.melonlib.cores.aop.anno.PrependUrl;
import cn.melonlib.cores.aop.anno.ReplaceUserVar;
import cn.melonlib.cores.aop.comp.web.WebInfo;
import cn.hutool.core.bean.BeanUtil;
import lombok.AccessLevel;
import lombok.Getter;
import org.apache.commons.lang3.ObjectUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.support.ApplicationObjectSupport;
import org.springframework.stereotype.Component;
import org.springframework.web.context.request.RequestContextHolder;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.regex.Pattern;

@Component
@Getter
@PrependUrl
@AppendAccessToken
@ReplaceUserVar
public class ApiConfig extends ApplicationObjectSupport {
    /**
     * 文件服务
     */
    private String fileApi= "/file" ;

    /**
     * 用户信息接口
     */
    @Value("${IAM_URL:/bus/graphql/iam}")
    private String iam =  "";

    /**
     * 业务调用接口
     */
    @Value("${BUS_URL:/bus/graphql/builtin}")
    private String builtin = "";

    /**
     * 推送接口
     */
    private String notification="/bus/graphql/notification_v2";
}
